package com.qiangesoft.flowable.controller;

import com.qiangesoft.flowable.constant.R;
import org.flowable.engine.ProcessEngine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 引擎 控制器
 *
 * @author qiangesoft
 * @date 2024-04-30
 */
@RestController
@RequestMapping("/engine")
public class ProcessEngineController {

    @Autowired
    private ProcessEngine processEngine;

    @GetMapping
    public R getName() {
        return R.ok(processEngine.getName());
    }

}
